package com.axxy.decorate;

/**
 * @author 一缕茜阳
 * @date 2021/7/15
 */
public class Coffee extends Drink {
    private int size;

    public Coffee(int size) {
        this.size = size;
    }

    @Override
    double cost(){
        super.size = size;
        return 8.0 + super.cost();
    }

    @Override
    String getName(){
        return "Coffee";
    }
}
